<div class="layui-side layui-bg-black">
	<div class="layui-side-scroll">
		<#include "/apps/business/xiaoe/include/left.html">
	</div>
</div>
<div class="layui-body">
	<div class="layui-side-scroll">
		<div class="row" style="height:100%;">
			<div class="col-lg-12">
				<h1 class="site-h1" style="background-color:#FFFFFF;">
					访客对话历史消息
				</h1>
				<div class="row" style="padding:5px;">
					<div class="col-lg-12">
						<table class="layui-table" lay-skin="line">
						  <thead>
							<tr>
							  <th>对话内容</th>
							  <th style="width:10%" nowrap>对话时间</th>
							</tr> 
						  </thead>
						  <tbody>
						  	<#if historyList?? && historyList.content??>
						  	<#list historyList.content as userinput>
							<tr>
							  <td class="ukefu_topic_title">
									${(userinput.message!'')?no_esc}
							  </td>
							  
							  <td  style="width:10%" nowrap>
									<#if userinput.createtime??>${userinput.createtime}</#if></td>
							  </td>
							</tr>
							</#list>
							</#if>
						  </tbody>
						</table>
					</div> 	   
				</div>
				<div class="row" style="padding:5px;">
					<div class="col-lg-12" id="page" style="text-align:center;"></div>
				</div>
			</div>	
		</div>
	</div>
</div>
<script>
	layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		  
		  laypage({
				cont: 'page'
				,pages: <#if historyList??>${historyList.totalPages}<#else>0</#if> //总页数
				,curr:<#if historyList??>${historyList.number+1}<#else>0</#if>
				,groups: 5 //连续显示分页数
				,jump:function(data , first){
					if(!first){
						location.href = "/apps/xiaoe/history.html?<#if q??>q=${q?url}&</#if><#if curtype??>type=${curtype.id}&</#if>p="+data.curr ;
					}
				}
		   });
		});
</script>